package com.fenqing.comics.dao.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fenqing.comics.dao.ICountryDao;
import com.fenqing.comics.dao.mapper.CountryMapper;
import com.fenqing.comics.entity.CountryEntity;
import org.springframework.stereotype.Repository;

@Repository
public class CountryServiceImpl extends ServiceImpl<CountryMapper, CountryEntity> implements ICountryDao {
    @Override
    public boolean existsByName(String name) {
        return this.lambdaQuery().eq(CountryEntity::getName, name).exists();
    }
}
